package cn.cvs.service.StorageRecord;

import cn.cvs.entity.StorageRecord;

import java.util.List;

/**
 * 供货单业务层接口
 */
public interface StorageRecordService {

	/**
	 * 列表查询
	 * @param supName
	 * @param supplierId
	 * @param payStatus
	 * @param pageBegin
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List<StorageRecord> getList(String supName, Integer supplierId,Integer payStatus
			, Integer pageBegin, Integer pageSize) throws Exception;


	/**
	 * 通过条件查询-订单表记录数
	 * @param supName
	 * @param supplierId
	 * @param payStatus
	 * @return
	 * @throws Exception
	 */
	public int getCount(String supName, Integer supplierId, Integer payStatus) throws Exception;

	/**
	 * 增加订单
	 * @param storageRecord
	 * @return
	 * @throws Exception
	 */
	public boolean add(StorageRecord storageRecord) throws Exception;

	/**
	 * 通过id获取供货单
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public StorageRecord getById(Integer id) throws Exception;

	/**
	 * 修改订单信息
	 * @param storageRecord
	 * @return
	 * @throws Exception
	 */
	public boolean update(StorageRecord storageRecord) throws Exception;

	/**
	 * 通过id删除订单信息
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public boolean deleteById(Integer id) throws Exception;
}
